package com.sylvan.java.exception;

import com.sylvan.java.responsedata.HttpCode;

/**
 * 自定义异常类
 *
 * @author
 * @create 2018-10-22 15:39
 **/
public class MyException extends Exception {



    public MyException(){}

    /**
     * 构造一个基本异常.
     *
     * @param message
     *        信息描述
     */
    public MyException(String message)
    {
        super(message);
    }

    public HttpCode getErrorCode() {
        return HttpCode.INTERNAL_SERVER_ERROR;
    }


}
